package com.corn.turtorial.consumer.service;

import com.corn.turtorial.consumer.mapper.Point;
import com.corn.turtorial.consumer.mapper.PointMapper;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author : Jim Wu
 * @version 1.0
 * @function :
 * @since : 2022/5/5 11:18
 */

@FeignClient(contextId = "spring-consumer", name = "spring-consumer")
@Service
public interface PointService {

    @PostMapping("createPoint")
    Map<String,Object> createPoint(@RequestBody Point point);
}
